#include <header.h>

int main(){

    // 
    // read : 1, 阻塞  2, 非阻塞


    int file_fd = open("./1.txt", O_RDWR);

    char buf[100] = {0};
    // int arr[100] = {0};

    ssize_t read_size = read(file_fd, buf, sizeof(buf));
    printf("buf: %s \n", buf);

    // 读文件 -> read函数非阻塞
    bzero(buf, sizeof(buf));
    read_size = read(file_fd, buf, sizeof(buf));
    printf("buf: %s \n", buf);

    close(file_fd);
    return 0;
}

